package com.server.service;

import com.api.pojo.User;
import com.api.service.UserServiceI;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl  implements UserServiceI {
    @Override
    public User selectUserById(Integer userId) throws Exception {
        User user =new User();
        user.setId(userId);
        user.setUsername("张三");
        System.out.println("提供服务，接收到客户端的id为"+userId);
        return user;
    }
}
